#include "stdafx.h"
#include "SearchOverlayWidget.h"

SearchOverlayWidget::SearchOverlayWidget(QWidget * parent) : QWidget(parent) {
}

SearchOverlayWidget::~SearchOverlayWidget() {
}

void SearchOverlayWidget::paintEvent(QPaintEvent * e) {
	QPainter painter(this);
	painter.setRenderHint(QPainter::SmoothPixmapTransform);
	painter.setRenderHint(QPainter::Antialiasing);
	painter.setRenderHint(QPainter::HighQualityAntialiasing);

	painter.setOpacity(0.8);
	painter.fillRect(rect(), Qt::black);
}